package com.serotonin.modbus4j.sero.messaging;

import com.serotonin.modbus4j.ModbusFactory;

/**
 * <p>DefaultMessagingExceptionHandler class.</p>
 *
 * @author Matthew Lohbihler
 * @version 5.0.0
 */
public class DefaultMessagingExceptionHandler implements MessagingExceptionHandler {
    /** {@inheritDoc} */
    public void receivedException(Exception e) {
        if(ModbusFactory.getLoggerLevel().equals("DEBUG")) {
            e.printStackTrace();
        }
    }
}
